package java.com.ktjy.mapper.user;

import com.ktjy.pojo.TUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface TUsermapper {
    /**
     * 统计用户数量的方法
     * @return
     */
    public int count();

    public List<TUser> getUserList(int currentPage, int pageSize);

    public List<TUser> getUsersByName(String realName);

    public List<TUser> getUserListByPojo(TUser user);

    public int insert(TUser user);

    public int update(TUser user);

    List<TUser> getuserByRoleId(List<Integer> roleIds);//(Integer[] roleIds);

    List<TUser> getuserByRoleIdMap(Map<String , Object> roleIdMap);

    List<TUser> selectList(@Param("realName")String realName, @Param("roleIds")Integer roleIds);
}